import getpass
card = int(getpass.getpass("请输入数字："))
print(type(card))
count = 0

while True:
    if count <3:
        user_guess = int(input("请猜一猜："))
        print(type(user_guess))
        if card == user_guess:
            print("恭喜你答对了，没有奖品")
            break
        elif card > user_guess:
            print("太小啦")
        else:
            print("太大啦")
    else:
        print("还没猜对，别玩了")
        break
    count = count+1